<!--‘是否展开’图标 和 组织名-->
<table>
    <tr style="height: 25px;">
        <td class="orgUserPicker-tree-item-td" style="vertical-align: top;" data-ng-click="openTree(org)">
                <span data-ng-if="org.subs.length > 0" >
                     <span class="hand" 
                           data-ng-class="{'caret':org.isSubsShow,'caretRight':!org.isSubsShow}"></span>
                </span>
                <span data-ng-if="!org.subs || org.subs.length == 0" >&nbsp;&nbsp;</span>
        </td>
        <td class="orgUserPicker-tree-item-td" style="vertical-align: top;"> 
                <span data-ng-click="selectOrg(org)" 
                      data-ng-bind-html="highlight(org,'org')" data-ng-class="{'select-tree-item': selectedOrg.orgId == org.orgId }" class="orgUserPicker-tree-item hand"></span> 
                <!-- <span class="badge pull-right">{{ org.nums }}</span>  -->
        </td>
    </tr>
</table>

<!--组织节点编辑框   用户操作在MUP 平台-->
<form data-ng-if="false && isEdit[org.orgId]" class="form" style="margin-top: 5px;margin-bottom: 5px;">
    <input data-ng-model="edit.inputValue" type="text" class="form-control tree-item-update-form" style="width: 180px;">
    <button data-ng-click="update()" class="btn btn-primary tree-item-update-form" >更新</button>
    <button data-ng-click="show(false)" class="btn btn-default tree-item-update-form" >取消</button>
</form>

<form data-ng-if="false && isShow[org.orgId]" class="form" style="margin-top: 5px;margin-bottom: 5px;">
    <input data-ng-model="edit.inputValue" type="text" placeholder='请输入组织名' class="form-control tree-item-update-form" style="width: 180px;">
    <button data-ng-click="save()" class="btn btn-primary tree-item-update-form" >保存 </button>
    <button data-ng-click="show(false)" class="btn btn-default tree-item-update-form" >取消</button>
</form>

<!--子组织-->
<ul style="list-style: none;padding-left: 17px;" data-ng-if="org.isSubsShow">
    <li data-ng-repeat="org in org.subs" data-ng-include="'views/org/TreeItem.html'"></li>
</ul>